<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
	<title>学生信息管理系统登录</title>
	<!-- Bootstrap core CSS -->
	<link href="asserts\css\bootstrap.min.css" th:href="@{/webjars/bootstrap/4.0.0/css/bootstrap.css}" rel="stylesheet">
	<!-- Custom styles for this template -->
<!--	<link href="asserts/css/signin.css" th:href="@{/asserts/css/signin.css}" rel="stylesheet">-->
	<link href="asserts/css/login.css" th:href="@{/asserts/css/login.css}" rel="stylesheet">
	<script type="text/javascript" src="asserts/js/jquery-3.2.1.slim.min.js" th:src="@{/webjars/jquery/3.3.1/jquery.js}"></script>
	<script type="text/javascript" src="asserts/js/popper.min.js" th:src="@{/webjars/popper.js/1.11.1/dist/popper.js}"></script>
	<script type="text/javascript" src="asserts/js/bootstrap.min.js" th:src="@{/webjars/bootstrap/4.0.0/js/bootstrap.js}"></script>

	<!-- Icons -->
	<script type="text/javascript" src="asserts/js/feather.min.js" th:src="@{/asserts/js/feather.min.js}"></script>
	<script>
		function send(i)
		{

			if (i===0)
			{
				$("#loginFrom").attr("action", $("#bt0").attr("uri")).submit();
				return false;
			}
			else if(i===1)
			{
				$("#loginFrom").attr("action",$("#bt1").attr("uri")).submit();
				return false;
			}
			else
			{
				$("#loginFrom").attr("action",$("#bt2").attr("uri")).submit();
				return false;
			}
		}

	</script>
</head>
<body>
<!--<img th:src = "'images/' +${aBook.picture}" alt="图书封面" style="height: 180px; width: 40%"/>-->
<!--<img class="mb-4" th:src="@{/asserts/img/bootstrap-solid.svg}" src="asserts/img/bootstrap-solid.svg" alt="" width="72" height="72">-->
<!--提示框-->
	<div class="alert alert-danger" role="alert" th:if="${msg!=null}">
		<div th:text="${msg}"></div>
	</div>

<!--	<div class="form">-->
	<div class="login">
<!--		<div class="container-login100">-->
<!--			<div class="wrap-login100">-->
<!--				<div class="login100-pic js-tilt" data-tilt>-->
<!--					<img th:src="@{/asserts/img/desk.png}" src="asserts/img/desk.png" alt="IMG">-->
<!--				</div>-->

			<form id="loginFrom" class="from-signin"  method="post">
			 <span class="login100-form-title">
					用户登录
			</span>

<!--	<h1 class="h3 mb-3 font-weight-normal" >请登录</h1>-->


			<div class="wrap-input100 validate-input">
<!--				<label class="sr-only" >用户名</label>-->
				<input type="text"  name="username" class="input100" placeholder="用户名"  required="" autofocus="">
				<span class="focus-input100"></span>
				<span class="symbol-input100">
						<i class="fa fa-envelope" aria-hidden="true"></i>
					</span>
			</div>
			<div class="wrap-input100 validate-input">
<!--				<label class="sr-only ">密码</label>-->
				<input type="password" name="password" class="input100" placeholder="密码"  required="">
				<span class="focus-input100"></span>
				<span class="symbol-input100">
						<i class="fa fa-lock" aria-hidden="true"></i>
					</span>
			</div>

			<div class="container-login100-form-btn">
				<button class="login100-form-btn"  th:attr="uri=@{/stu/login}" onclick="send(0)"  id="bt0">学生登录</button>
				<button class="login100-form-btn"  th:attr="uri=@{/tea/login}" onclick="send(1)" id="bt1">教师登录</button>
				<button class="login100-form-btn"   th:attr="uri=@{/adm/login}"  onclick="send(2)" id="bt2">管理员登录</button>
			</div>

			<div class="text-center p-t-12">
				<a class="txt2" href="javascript:">
					忘记密码？
				</a>
			</div>

			<div class="text-center p-t-136">
				<a class="txt2" href="#">
					还没有账号？立即注册
					<i class="fa fa-long-arrow-right m-l-5" aria-hidden="true"></i>
				</a>
			</div>
		</form>

<!--		</div>-->
<!--		</div>-->
	</div>
<div style="margin-top:650px;text-align: center;"><p class="mt-5 mb-3 text-dark">学生成绩信息管理系统</p></div>

</body>

</html>